package com.kd.crawler.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.kd.crawler.utils.MD5Utils;

public class SocialAccountDoc {

	private String id;

	/**
	 * 锟斤拷息锟斤拷Url
	 */
	private String url = "";

	/**
	 * 锟斤拷锟斤拷 1000锟斤拷锟街凤拷之锟斤拷
	 */
	private String title = "";

	/**
	 * 锟斤拷锟斤拷
	 */
	private String content = "";
	
	/**
	 * 锟斤拷息锟斤拷锟斤拷锟斤拷 format:yyyy-MM-dd( HH:mm:ss)
	 */
	private String publishDate = "";

	/**
	 * 锟斤拷息锟斤拷锟斤拷锟斤拷 format:yyyyMMddHHmmss
	 */
	private Long date = null;
	
	/**
	 * 锟斤拷锟斤拷
	 */
	private String author = "";

	/**
	 * 锟斤拷源
	 */
	private Integer source;

	/**
	 * 1: 锟斤拷锟斤拷 2锟斤拷锟斤拷频 3:锟斤拷坛 4锟斤拷锟绞达拷/知锟斤拷 5锟斤拷平媒 6锟斤拷锟斤拷锟斤拷
	 */
	private Integer type = 6;
	
	/**
	 * level
	 */
	private int level = 0;
	
	/**
	 * 锟斤拷站锟斤拷锟絀D
	 */
	private Integer entryId;

//	/**
//	 * 锟斤拷锟斤拷锟斤拷锟斤拷
//	 */
//	private Integer AddressValue;

	/**
	 * 锟斤拷锟斤拷/锟斤拷锟斤拷
	 */
	private String comments = "";

	/**
	 * 锟斤拷锟斤拷锟�/锟斤拷
	 */
	private Integer clickNum = 0;

	/**
	 * 锟斤拷锟斤拷锟斤拷/锟斤拷锟斤拷锟斤拷
	 */
	private Integer commentNum = 0;

	/**
	 * 转锟斤拷锟斤拷
	 */
	private Integer forwardNum = 0;

	/**
	 * 锟斤拷注锟斤拷锟斤拷
	 */
	private int attentionsCount = 0;

	/**
	 * 锟斤拷丝锟斤拷锟斤拷
	 */
	private int fansCount = 0;

	/**
	 * 锟斤拷锟斤拷签锟斤拷
	 */
	private String signMind = "";

	/**
	 * 锟借备
	 */
	private String device = "";

	private int status = 0;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(String publishDate) {
		this.publishDate = publishDate;
	}

	public Long getDate() {
		return date;
	}

	public void setDate(Long date) {
		this.date = date;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public Integer getEntryId() {
		return entryId;
	}

	public void setEntryId(Integer entryId) {
		this.entryId = entryId;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public Integer getClickNum() {
		return clickNum;
	}

	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	public Integer getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}

	public Integer getForwardNum() {
		return forwardNum;
	}

	public void setForwardNum(Integer forwardNum) {
		this.forwardNum = forwardNum;
	}

	public int getAttentionsCount() {
		return attentionsCount;
	}

	public void setAttentionsCount(int attentionsCount) {
		this.attentionsCount = attentionsCount;
	}

	public int getFansCount() {
		return fansCount;
	}

	public void setFansCount(int fansCount) {
		this.fansCount = fansCount;
	}

	public String getSignMind() {
		return signMind;
	}

	public void setSignMind(String signMind) {
		this.signMind = signMind;
	}

	public String getDevice() {
		return device;
	}

	public void setDevice(String device) {
		this.device = device;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public String logFor() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return "["
				+ "date=" + sdf.format(new Date(date))
				+ ",source=" + source
				+ ",md5=" + MD5Utils.MD5(url)
				+ ",url=" + url;
	}
	
}
